package com.zkrt.upms.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.zkrt.upms.service.INotifyRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/notify")
public class NotifyController {

    @Autowired
    private INotifyRService notifyService;

    @GetMapping("/page")
    public R page(@RequestParam(required = false, value = "current") Long current,
                  @RequestParam(required = false, value = "size") Long size) {
        return notifyService.page(current, size);
    }

}
